/*
 * fluro
 * Created by Yakka
 * https://theyakka.com
 * 
 * Copyright (c) 2019 Yakka, LLC. All rights reserved.
 * See LICENSE for distribution and usage details.
 */
import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import './router_handlers.dart';

class Routes {
  static String root = '/';
  static String testLink = '/test';

  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = Handler(
        handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
      print('ROUTE WAS NOT FOUND !!!');
      return;
    });

    router.define(root, handler: rootHandler);
    router.define(testLink,
        handler: testPageHanderl, transitionType: TransitionType.inFromRight);
  }
}
